set :application, "yourwiki"
set :repository,  "git@git.yourwiki.net:yourwiki.git"
set :scm, :git
set :deploy_via, :remote_cache

set :deploy_to, "/home/yourwiki/#{application}"
set :user, "yourwiki"
set :use_sudo, false

role :app, "serv2.yourwiki.net"
role :web, "serv2.yourwiki.net"
role :db,  "serv2.yourwiki.net", :primary => true

namespace :deploy do
  task :stop, :roles => [:app] do
    run "cd #{deploy_to}/current && nohup script/powerdown"
  end
  
  task :restart, :roles => [:app] do
    deploy.stop
    deploy.start
  end
end
